From b192120f39206a546de7190901e79a62133b56aa Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Sep 2017 18:48:36 -0400 Subject: [PATCH] vulkan: fix a clip handling problem We were looking at uninitialized memory here, instead of the type of the source clip, as we should. This showed up as mispositioned clip in the first frame of a crossfade stack transition, and also as overdraw in sliding stack transitions. --- gsk/gskvulkanclip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsk/gskvulkanclip.c b/gsk/gskvulkanclip.c index 9a3ad8696f..e7696e6abf 100644 --- a/gsk/gskvulkanclip.c +++ b/gsk/gskvulkanclip.c @@ -133,7 +133,7 @@ gsk_vulkan_clip_transform (GskVulkanClip *dest, const graphene_matrix_t *transform, const graphene_rect_t *viewport) { - switch (dest->type) + switch (src->type) { default: g_assert_not_reached(); -- 2.30.2